import { BigNumber } from 'bignumber.js'

export const fromWei = (value, decimas, toFixed = 6) => {
    return Number(new BigNumber(value).div(new BigNumber(10).pow(decimas)).toFixed(toFixed))
}